#ifndef __GSYSTEM_H
#define __GSYSTEM_H

#include <windows.h>
#include <tchar.h>
#include <gdiplus.h>


// self-defined WM_CREATE message, should be posted after CreateWindow returns
#define G_WM_CREATE	WM_USER + 0x1000


int GMainEventLoop();
LRESULT CALLBACK GWinProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);


struct GRect {
	DWORD x;
	DWORD y;
	DWORD width;
	DWORD height;
};


#endif  // __GSYSTEM_H
